org.eclipse.vtp.framework.spi
Interface ICommand

All Known Subinterfaces:
IRunnableCommand
All Known Implementing Classes:
BridgeMessageCommand, ControllerCommand, ConversationCommand, DataRequestCommand, EndMessageCommand, ExitCommand, ExternalReferenceCommand, FinalCommand, ForwardCommand, IncludeCommand, InitialCommand, InputRequestCommand, MetaDataMessageCommand, MetaDataRequestCommand, OutputMessageCommand, SelectionRequestCommand, TransferMessageCommand

public interface ICommand

A command that can be enqueued with the external process controller.

Author:
Lonnie Pryor

Method Summary
 java.lang.Object accept(ICommandVisitor visitor)
          Attempts to invoke an implementation-dependent visit method on the supplied visitor, calling ICommandVisitor.visitUnknown(ICommand) if such a method is not available.
 java.lang.Object exportContents()
          Exports the contents of this command to a simple structure of arrays and serializable values from java.lang.
 void importContents(java.lang.Object contents)
          Configures the contents of this command with a structure previously returned from exportContents().
 

Method Detail

accept

java.lang.Object accept(ICommandVisitor visitor)
                        throws java.lang.NullPointerException
Attempts to invoke an implementation-dependent visit method on the supplied visitor, calling ICommandVisitor.visitUnknown(ICommand) if such a method is not available.

Parameters:
visitor - The visitor to accept.
Returns:
The value returned by the visitor's visit method.
Throws:
java.lang.NullPointerException - If the supplied visitor is null.

exportContents

java.lang.Object exportContents()
Exports the contents of this command to a simple structure of arrays and serializable values from java.lang.

Returns:
A serializable structure this command can be re-constituted from.

importContents

void importContents(java.lang.Object contents)
Configures the contents of this command with a structure previously returned from exportContents().

Parameters:
contents - The exported contents structure to load from.